package cn.com.dingtek.genius.manager.server.web.controller;

import cn.com.dingtek.genius.manager.server.service.SupportService;
import cn.com.dingtek.genius.manager.server.support.sam.annotation.AssertAuth;
import cn.com.dingtek.genius.manager.server.web.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/support")
public class SupportController {
    @Autowired
    private SupportService supportService;

    @AssertAuth
    @GetMapping("/device_type")
    public Result deviceType() {
        return Result.ok(supportService.deviceType());
    }

    @AssertAuth
    @GetMapping("/device_socket")
    public Result deviceSocket() {
        return Result.ok(supportService.deviceSocket());
    }


    @AssertAuth
    @GetMapping("/platform_type")
    public Result platformType() {
        return Result.ok(supportService.platformType());
    }

    @AssertAuth
    @GetMapping("/toWeb_type")
    public Result toWebType() {
        return Result.ok(supportService.toWebType());
    }


    @AssertAuth
    @GetMapping("/staffApp_type")
    public Result staffAppType() {
        return Result.ok(supportService.staffAppType());
    }
}
